<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Calm Tasks - Home</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        body {
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        }
        .neumorphic {
            background: #f1f5f9;
            box-shadow: 
                20px 20px 60px #d1d9e6, 
                -20px -20px 60px #ffffff;
            border-radius: 20px;
            border: 1px solid rgba(255,255,255,0.2);
        }
        .neumorphic-inset {
            background: #f1f5f9;
            box-shadow: 
                inset 8px 8px 16px #d1d9e6, 
                inset -8px -8px 16px #ffffff;
            border-radius: 15px;
        }
        .neumorphic-small {
            background: #f1f5f9;
            box-shadow: 
                8px 8px 16px #d1d9e6, 
                -8px -8px 16px #ffffff;
            border-radius: 15px;
        }
        .status-bar {
            background: linear-gradient(90deg, #000 0%, #333 100%);
            height: 44px;
        }
        .tab-bar {
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(20px);
            border-top: 1px solid rgba(0, 0, 0, 0.05);
        }
        .breathing-pulse {
            animation: breathe 3s ease-in-out infinite;
        }
        @keyframes breathe {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
    </style>
</head>
<body class="h-screen overflow-hidden">
    <!-- iOS Status Bar -->
    <div class="status-bar flex justify-between items-center px-6 text-white text-sm font-medium">
        <div class="flex items-center space-x-1">
            <span>9:41</span>
        </div>
        <div class="flex items-center space-x-1">
            <i class="fas fa-signal text-xs"></i>
            <i class="fas fa-wifi text-xs"></i>
            <i class="fas fa-battery-three-quarters text-xs"></i>
        </div>
    </div>

    <!-- Main Content -->
    <div class="flex-1 p-6 pb-24 overflow-y-auto" style="height: calc(100vh - 44px - 83px);">
        <!-- Header with Profile -->
        <div class="flex justify-between items-center mb-8">
            <div>
                <h1 class="text-2xl font-bold text-gray-800">Good Morning</h1>
                <p class="text-gray-600 mt-1">Take it one step at a time ✨</p>
            </div>
            <div class="neumorphic-small w-12 h-12 flex items-center justify-center">
                <img src="https://images.unsplash.com/photo-1494790108755-2616b612b786?w=50&h=50&fit=crop&crop=face&auto=format" 
                     alt="Profile" class="w-8 h-8 rounded-full object-cover">
            </div>
        </div>

        <!-- Breathing Exercise Card -->
        <div class="neumorphic p-6 mb-6 breathing-pulse">
            <div class="flex items-center justify-between">
                <div class="flex items-center space-x-4">
                    <div class="w-12 h-12 bg-gradient-to-br from-blue-400 to-blue-600 rounded-full flex items-center justify-center">
                        <i class="fas fa-wind text-white text-lg"></i>
                    </div>
                    <div>
                        <h3 class="font-semibold text-gray-800 text-lg">Breathing Space</h3>
                        <p class="text-sm text-gray-600">2 minutes to find your calm</p>
                    </div>
                </div>
                <button class="bg-gradient-to-r from-blue-500 to-blue-600 text-white px-6 py-3 rounded-full text-sm font-medium shadow-lg hover:shadow-xl transition-all">
                    Start
                </button>
            </div>
        </div>

        <!-- Today's Progress -->
        <div class="neumorphic p-6 mb-6">
            <div class="flex items-center justify-between mb-4">
                <h2 class="text-xl font-semibold text-gray-800">Today's Progress</h2>
                <div class="flex items-center space-x-2">
                    <div class="w-8 h-8 bg-green-100 rounded-full flex items-center justify-center">
                        <span class="text-green-600 text-xs font-bold">3</span>
                    </div>
                    <span class="text-sm text-gray-500">of 5 completed</span>
                </div>
            </div>
            
            <!-- Progress Bar -->
            <div class="neumorphic-inset p-3 mb-4">
                <div class="flex justify-between items-center mb-2">
                    <span class="text-sm text-gray-600">Daily Goal</span>
                    <span class="text-sm font-medium text-green-600">60%</span>
                </div>
                <div class="w-full bg-gray-200 rounded-full h-2">
                    <div class="bg-gradient-to-r from-green-400 to-green-500 h-2 rounded-full transition-all duration-500" style="width: 60%"></div>
                </div>
            </div>
        </div>

        <!-- Today's Tasks -->
        <div class="mb-6">
            <h2 class="text-xl font-semibold text-gray-800 mb-4">Today's Tasks</h2>
            
            <div class="space-y-3">
                <!-- Completed Task -->
                <div class="neumorphic-inset p-4 flex items-center space-x-3 opacity-75">
                    <div class="w-6 h-6 bg-green-500 rounded-full flex items-center justify-center flex-shrink-0">
                        <i class="fas fa-check text-white text-xs"></i>
                    </div>
                    <div class="flex-1">
                        <p class="text-gray-800 line-through">Morning meditation (10 min)</p>
                        <div class="flex items-center space-x-2 mt-2">
                            <span class="text-xs bg-green-100 text-green-700 px-3 py-1 rounded-full font-medium">Low anxiety</span>
                            <span class="text-xs text-gray-500">✓ Completed at 8:30 AM</span>
                        </div>
                    </div>
                </div>

                <!-- Active Task with Medium Anxiety -->
                <div class="neumorphic p-4 flex items-center space-x-3 border-l-4 border-yellow-400">
                    <div class="w-6 h-6 border-2 border-gray-300 rounded-full flex-shrink-0"></div>
                    <div class="flex-1">
                        <p class="text-gray-800 font-medium">Call dentist for appointment</p>
                        <div class="flex items-center space-x-2 mt-2">
                            <span class="text-xs bg-yellow-100 text-yellow-700 px-3 py-1 rounded-full font-medium">Medium anxiety</span>
                            <span class="text-xs text-gray-500">Due: 2:00 PM</span>
                        </div>
                        <div class="mt-3 p-3 bg-yellow-50 rounded-lg border-l-2 border-yellow-200">
                            <p class="text-xs text-yellow-800">💡 <strong>Tip:</strong> Write down what you want to say before calling</p>
                        </div>
                    </div>
                </div>

                <!-- Low Anxiety Task -->
                <div class="neumorphic p-4 flex items-center space-x-3">
                    <div class="w-6 h-6 border-2 border-gray-300 rounded-full flex-shrink-0"></div>
                    <div class="flex-1">
                        <p class="text-gray-800">Grocery shopping</p>
                        <div class="flex items-center space-x-2 mt-2">
                            <span class="text-xs bg-blue-100 text-blue-700 px-3 py-1 rounded-full font-medium">Low anxiety</span>
                            <span class="text-xs text-gray-500">Due: 5:00 PM</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- Quick Actions -->
        <div class="grid grid-cols-2 gap-4 mb-6">
            <div class="neumorphic p-6 text-center hover:shadow-2xl transition-all cursor-pointer">
                <div class="w-14 h-14 bg-gradient-to-br from-purple-400 to-purple-600 rounded-full flex items-center justify-center mx-auto mb-3">
                    <i class="fas fa-plus text-white text-lg"></i>
                </div>
                <p class="text-sm font-medium text-gray-800">Add Task</p>
                <p class="text-xs text-gray-500 mt-1">Create new goal</p>
            </div>
            <div class="neumorphic p-6 text-center hover:shadow-2xl transition-all cursor-pointer">
                <div class="w-14 h-14 bg-gradient-to-br from-pink-400 to-pink-600 rounded-full flex items-center justify-center mx-auto mb-3">
                    <i class="fas fa-heart text-white text-lg"></i>
                </div>
                <p class="text-sm font-medium text-gray-800">Log Mood</p>
                <p class="text-xs text-gray-500 mt-1">How are you feeling?</p>
            </div>
        </div>

        <!-- Encouragement Card -->
        <div class="neumorphic p-6 bg-gradient-to-r from-blue-50 to-purple-50">
            <div class="text-center">
                <div class="text-2xl mb-3">🌟</div>
                <h3 class="font-semibold text-gray-800 mb-2">You're doing great!</h3>
                <p class="text-sm text-gray-600">Remember: Progress, not perfection. Every small step counts.</p>
            </div>
        </div>
    </div>

    <!-- Tab Bar -->
    <div class="tab-bar fixed bottom-0 left-0 right-0 h-20 flex items-center justify-around px-6">
        <div class="flex flex-col items-center space-y-1">
            <i class="fas fa-home text-blue-600 text-lg"></i>
            <span class="text-xs text-blue-600 font-medium">Home</span>
        </div>
        <div class="flex flex-col items-center space-y-1">
            <i class="fas fa-tasks text-gray-400 text-lg"></i>
            <span class="text-xs text-gray-400">Tasks</span>
        </div>
        <div class="flex flex-col items-center space-y-1">
            <i class="fas fa-smile text-gray-400 text-lg"></i>
            <span class="text-xs text-gray-400">Mood</span>
        </div>
        <div class="flex flex-col items-center space-y-1">
            <i class="fas fa-chart-line text-gray-400 text-lg"></i>
            <span class="text-xs text-gray-400">Progress</span>
        </div>
        <div class="flex flex-col items-center space-y-1">
            <i class="fas fa-cog text-gray-400 text-lg"></i>
            <span class="text-xs text-gray-400">Settings</span>
        </div>
    </div>
</body>
</html>